﻿using StructureMap.Configuration.DSL;
using ZSoft.Telegram.DataAccess;
using ZSoft.Telegram.DataAccess.Abstractions;
using ZSoftPintrest.Domain;
using ZSoftPintrest.Services;
using ZSoftPintrest.Services.Abstraction;

namespace ZSoft.Telegram.UI.Web.Infrastructure.IOC.Registries.Services
{
    public class ChannelServiceRegistry: Registry
    {
        public ChannelServiceRegistry()
        {
            this.For(typeof(IChannelService))
                 .Use(typeof(ChannelService))
                   .Ctor<IRepository<Channel>>()
                   .Is(new SqlRepository<Channel>(new ApplicationDbContext()));
                   
        }
    }
}
